package com.stylefeng.guns.biz.app.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author sundm123
 * @since 2018-06-14
 */
@TableName("t_app_list")
public class TAppList extends Model<TAppList> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	@TableField("app_name")
	private String appName;
	private String title;
	@TableField("app_id")
	private String appId;
	@TableField("app_secret")
	private String appSecret;
	@TableField("page_type")
	private Long pageType;
	@TableField("page_id")
	private Long pageId;
	@TableField("page_url")
	private String pageUrl;
	@TableField("create_time")
	private Date createTime;
	@TableField("create_id")
	private Long createId;

	@TableField("jump_type")
	private Integer jumpType;
	@TableField("default_jump_type")
	private Integer defaultJumpType;
	@TableField("jump_app_id")
	private String jumpAppId;
	@TableField("app_url")
	private String appUrl;
	@TableField("h5_url")
	private String h5Url;
	
	@TableField("img")
	private String img;
	/**
	 * 默认跳转url
	 */
	@TableField(exist=false)
	private String url;
	
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public Integer getJumpType() {
		return jumpType;
	}

	public void setJumpType(Integer jumpType) {
		this.jumpType = jumpType;
	}

	public Integer getDefaultJumpType() {
		return defaultJumpType;
	}

	public void setDefaultJumpType(Integer defaultJumpType) {
		this.defaultJumpType = defaultJumpType;
	}

	public String getJumpAppId() {
		return jumpAppId;
	}

	public void setJumpAppId(String jumpAppId) {
		this.jumpAppId = jumpAppId;
	}

	public String getAppUrl() {
		return appUrl;
	}

	public void setAppUrl(String appUrl) {
		this.appUrl = appUrl;
	}

	public String getH5Url() {
		return h5Url;
	}

	public void setH5Url(String h5Url) {
		this.h5Url = h5Url;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

	public Long getPageType() {
		return pageType;
	}

	public void setPageType(Long pageType) {
		this.pageType = pageType;
	}

	public Long getPageId() {
		return pageId;
	}

	public void setPageId(Long pageId) {
		this.pageId = pageId;
	}

	public String getPageUrl() {
		return pageUrl;
	}

	public void setPageUrl(String pageUrl) {
		this.pageUrl = pageUrl;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getCreateId() {
		return createId;
	}

	public void setCreateId(Long createId) {
		this.createId = createId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "TAppList{" + "id=" + id + ", appName=" + appName + ", title=" + title + ", appId=" + appId
				+ ", appSecret=" + appSecret + ", pageType=" + pageType + ", pageId=" + pageId + ", pageUrl=" + pageUrl
				+ ", createTime=" + createTime + ", createId=" + createId + "}";
	}
}
